package com.f5.management.service;

import com.f5.management.entity.Building;
import com.f5.management.entity.Community;
import com.f5.management.entity.RealEstate;
import com.f5.management.entity.dto.RealEstateUserDto;
import com.f5.management.utils.PageResult;

import java.util.List;

public interface RealEstateService {
    //添加
    int add(RealEstateUserDto realEstateUserDto);

    //分页查询数据
    PageResult<List<RealEstateUserDto>> findByPage(int page, int size);

    //通过编号搜索
    PageResult<List<RealEstateUserDto>> findByNumber(String serialNumber,int rid, int page, int i);

    //更改信息
    boolean updateInfo(RealEstateUserDto realEstateUserDto);

    //查询编号是否存在
    boolean selectNumber(String serialNumber);

    //删除信息
    boolean delInfo(int id);

    //id查询数据进行修改
    RealEstateUserDto findById(int id);
}
